package liurong.driver.reg;

import java.util.regex.Pattern;

public class RegTest {
	public static void main(String[] args) {
		String pattern = "(\\w+=[A-Za-z0-9\\u4e00-\\u9fa5\\-*]+)(&(\\w+=[A-Za-z0-9\\u4e00-\\u9fa5\\-*]+))*";
		boolean isMatch = Pattern.matches(pattern, "-1=123");
		System.out.println(isMatch);
	}
}
